/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.errmsg;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 错误代码管理Entity
 * @author 王磊
 * @version 2016-08-22
 */
public class ErrMsg extends DataEntity<ErrMsg> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// 错误信息
	protected String errCode;		// 错误代码
	
	public ErrMsg() {
		super();
	}

	public ErrMsg(String id){
		super(id);
	}

	@Length(min=1, max=255, message="错误信息长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=15, message="错误代码长度必须介于 1 和 15 之间")
	public String getErrCode() {
		return errCode;
	}

	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}
	
}